package operate;

public class ConditionalExpression {
	private boolean isLeftConstant = true;
	private String left = null;
	private String leftType;
	private String leftTableName;
	private String leftAttribute;
	private int leftcolumn;

	private boolean isRightConstant = true;
	private String right = null;
	private String rightType;
	private String rightTableName;
	private String rightAttribute;
	private int rightcolumn;
	
	private String oper;

	public ConditionalExpression() {
		super();
	}

	public ConditionalExpression(ConditionalExpression c) {
		super();
		this.isLeftConstant = c.isLeftConstant;
		this.left = c.left;
		this.leftType = c.leftType;
		this.leftTableName = c.leftTableName;
		this.leftAttribute = c.leftAttribute;
		this.leftcolumn = c.leftcolumn;
		this.isRightConstant = c.isRightConstant;
		this.right = c.right;
		this.rightType = c.rightType;
		this.rightTableName = c.rightTableName;
		this.rightAttribute = c.rightAttribute;
		this.rightcolumn = c.rightcolumn;
		this.oper = c.oper;
	}

	public ConditionalExpression(boolean isLeftConstant, String left, String leftType, String leftTableName,
			String leftAttribute, int leftcolumn, boolean isRightConstant,
			String right, String rightType, String rightTableName, String rightAttribute, int rightcolumn,
			String oper) {
		super();
		this.isLeftConstant = isLeftConstant;
		this.left = left;
		this.leftType = leftType;
		this.leftTableName = leftTableName;
		this.leftAttribute = leftAttribute;
		this.leftcolumn = leftcolumn;
		this.isRightConstant = isRightConstant;
		this.right = right;
		this.rightType = rightType;
		this.rightTableName = rightTableName;
		this.rightAttribute = rightAttribute;
		this.rightcolumn = rightcolumn;
		this.oper = oper;
	}

	@Override
	public String toString() {
		return "ConditionalExpression [isLeftConstant=" + isLeftConstant + ", left=" + left + ", leftType=" + leftType
				+ ", leftTableName=" + leftTableName + ", leftAttribute=" + leftAttribute + ", leftcolumn=" + leftcolumn
				+ "," + "isRightConstant=" + isRightConstant
				+ ", right=" + right + ", rightType=" + rightType + ", rightTableName=" + rightTableName
				+ ", rightAttribute=" + rightAttribute + ", rightcolumn=" + rightcolumn + "," + "oper=" + oper + "]";
	}

	public int getLeftcolumn() {
		return leftcolumn;
	}

	public void setLeftcolumn(int leftcolumn) {
		this.leftcolumn = leftcolumn;
	}

	public int getRightcolumn() {
		return rightcolumn;
	}

	public void setRightcolumn(int rightcolumn) {
		this.rightcolumn = rightcolumn;
	}

	public boolean isLeftConstant() {
		return isLeftConstant;
	}

	public void setLeftConstant(boolean isLeftConstant) {
		this.isLeftConstant = isLeftConstant;
	}

	public String getLeft() {
		return left;
	}

	public void setLeft(String left) {
		this.left = left;
	}

	public String getLeftType() {
		return leftType;
	}

	public void setLeftType(String leftType) {
		this.leftType = leftType;
	}

	public String getLeftTableName() {
		return leftTableName;
	}

	public void setLeftTableName(String leftTableName) {
		this.leftTableName = leftTableName;
	}

	public String getLeftAttribute() {
		return leftAttribute;
	}

	public void setLeftAttribute(String leftAttribute) {
		this.leftAttribute = leftAttribute;
	}

	public boolean isRightConstant() {
		return isRightConstant;
	}

	public void setRightConstant(boolean isRightConstant) {
		this.isRightConstant = isRightConstant;
	}

	public String getRight() {
		return right;
	}

	public void setRight(String right) {
		this.right = right;
	}

	public String getRightType() {
		return rightType;
	}

	public void setRightType(String rightType) {
		this.rightType = rightType;
	}

	public String getRightTableName() {
		return rightTableName;
	}

	public void setRightTableName(String rightTableName) {
		this.rightTableName = rightTableName;
	}

	public String getRightAttribute() {
		return rightAttribute;
	}

	public void setRightAttribute(String rightAttribute) {
		this.rightAttribute = rightAttribute;
	}

	public String getOper() {
		return oper;
	}

	public void setOper(String oper) {
		this.oper = oper;
	}

}
